
export default [{
  path: '/user',
  component: () => import('../views/user/UserList.vue'),
  meta: { title: '用户管理', keepAlive: true },
  children: [{
    path: '/user/edit',
    component: () => import('../views/user/UserEdit.vue'),
    meta: { title: '修改', code: 'edit' }
  }, {
    path: '/user/transfer',
    component: () => import('../views/user/UserUnitChange.vue'),
    meta: { title: '转岗', code: 'transfer' }
  }, {
    meta: { title: '兼职', code: 'transfer' }
  }, {
    path: '/user/synclog',
    component: () => null,
    meta: { title: '同步记录', code: 'synclog' }
  }, {
    meta: { title: '排序', code: 'order' }
  }, {
    meta: { title: '解锁', code: 'reset' }
  }, {
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }]
}, {
  path: '/unit',
  component: () => import('../views/unit/UnitList.vue'),
  meta: { title: '机构管理', keepAlive: true },
  children: [{
    path: '/unit/edit',
    component: () => import('../views/unit/UnitEdit.vue'),
    meta: { title: '修改', code: 'edit' }
  }, {
    path: '/unit/add',
    component: () => import('../views/unit/UnitAdd.vue'),
    meta: { title: '新增', code: 'add' }
  }, {
    path: '/unit/group',
    component: () => import('../views/unit/UnitGroupList.vue'),
    meta: { title: '分组列表', code: 'list' }
  }, {
    path: '/unit/synclog',
    component: () => null,
    meta: { title: '同步记录', code: 'synclog' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }, {
    meta: { title: '停用', code: 'stop' }
  }]
}, {
  path: '/extend-unit',
  component: () => import('../views/extend/ExtendList.vue'),
  meta: { title: '机构扩展', keepAlive: true },
  children: [{
    path: '/extend-unit/edit',
    component: () => import('../views/extend/ExtendEdit.vue'),
    meta: { title: '编辑', code: 'edit' }
  }, {
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }]
}, {
  path: '/extend-user',
  component: () => import('../views/extenduser/ExtendUserList.vue'),
  meta: { title: '用户扩展', keepAlive: true },
  children: [{
    path: '/extend-user/edit',
    component: () => import('../views/extenduser/ExtendUserEdit.vue'),
    meta: { title: '编辑', code: 'edit' }
  }, {
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }]
}, {
  path: '/rank',
  component: () => import('../views/rank/RankManagementList.vue'),
  meta: { title: '职级管理', keepAlive: true },
  children: [{
    path: '/rank/edit',
    component: () => import('../views/rank/RankManagementEdit.vue'),
    meta: { title: '编辑', code: 'edit' }
  }, {
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }]
}, {
  path: '/job',
  component: () => import('../views/job/JobManagementList.vue'),
  meta: { title: '岗位管理', keepAlive: true },
  children: [{
    path: '/job/edit',
    component: () => import('../views/job/JobManagementEdit.vue'),
    meta: { title: '编辑', code: 'edit' }
  }, {
    meta: { title: '新增', code: 'add' }
  }, {
    meta: { title: '删除', code: 'delete' }
  }]
}]